package com.minis.main;

/**
 * Create by 18415 on 2025/7/27 19:00
 */
public class AServiceImpl implements AService {
    private String name;
    private Integer age;
    private BService bService;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setBService(BService bService) {
        this.bService = bService;
    }

    @Override
    public void hello() {
        System.out.println("hello AServiceImpl...");
        System.out.println("AService: hello, I'm " + name + ", " + age + " years old.");
        bService.hello();
    }

    @Override
    public void call(String name) {
        System.out.println("AService: call " + name);
    }
}
